package com.furtherstar.auth.service;

import java.util.List;
import java.util.Map;

import com.furtherstar.auth.controller.dto.AppQuery;
import com.furtherstar.auth.dao.model.App;
import com.github.pagehelper.PageSerializable;

public interface AppService {

	Long add(App app);

	Long update(App app);

	Long disable(Long appId);

	Long enable(Long appId);

	Boolean delete(Long appId);

	PageSerializable<App> queryPage(AppQuery appQuery);

	List<App> queryList(AppQuery appQuery);

	Map<String, App> getAppMap(List<String> appnames);

}
